﻿@model SAKS.ViewModels.LogOnModel

@{
    ViewBag.Title = "登录";
}


            <div class="account">
            <h3>登陆</h3>
            <p class="float-left">没有账户？点此 @Html.ActionLink("注册", "Register", "Account") </p>
            <link href="@Url.Content("~/Content/themes/base/validationEngine.jquery.css")" rel="stylesheet" type="text/css" />
            <script src="@Url.Content("~/Scripts/jquery.validationEngine.js")" type="text/javascript"></script>
            <script src="@Url.Content("~/Scripts/jquery.validationEngine-ch.js")" type="text/javascript"></script>
            <script type="text/javascript">
                $(function () {
                    $("input[type='submit']").button();
                    $("form").validationEngine({});
                });
            </script>

            <div>
            @using (Html.BeginForm())
            { 

                    <div class="editor-label">
                        <label for="UserName">用户名</label>
                    </div>
                    <div class="editor-field">
                        <input class="validate[required,custom[onlyLetterNumber]]" id="UserName" name="UserName" type="text" value="" />
                    </div>
                    <div class="editor-label" >
                        <label for="Password">密码</label>
                    </div>
                    <div class="editor-field" >
                        <input class="validate[required,minSize[6],maxSize[30]" id="Password" name="Password" type="password" />
                    </div>
                    <div class="editor-field">
                        @Html.CheckBoxFor(m => m.RememberMe)
                        @Html.LabelFor(m => m.RememberMe)
                    </div>      
                    <p><input type="submit" value="登录" /></p>
            }
            </div>
            <br />
            @Html.ValidationSummary(true, "登录失败。请重试")             
        </div>




